// 整个项目的入口文件
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import fastclick from 'fastclick'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import store from './store'
import './assets/styles/reset.css'
import './assets/styles/border.css'
import './assets/styles/iconfont.css'
import 'swiper/dist/css/swiper.css'

Vue.config.productionTip = false
// 解决移动端300ms点击事件延迟问题
fastclick.attach(document.body)
// 使用VueAwesomeSwiper插件
Vue.use(VueAwesomeSwiper)
/* eslint-disable no-new */
Vue.prototype.bus = new Vue();

new Vue({
  el: '#app',
  router,
  store,
  // 定义局部组件
  components: {
    App
  },
  template: '<App/>'
})
